home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
demos
/
lanmap
/
lanmap.doc
< prev
next >
Wrap
Text File
|
1996-07-10
|
25KB
|
495 lines
What is LANMAP?
LANMAP is a Local Area Network utility program designed
specifically for use with Novell networks. The program is used
to obtain a pictorial representation of the user area, combined
with a graphic view of which user is logged onto each
workstation.
Using the built-in editor, or any another text editor, the
System Administrator can draw a map of the network, save it to
disk, and instantly track real-time workstation use. This can
be useful for security monitoring, LAN use estimates, or finding
which users are still logged on after hours or after a broadcast
message to log off for system maintenance.
LANMAP is very simple to use. The main user menu is straight
forward. All program functions can be accessed from the menus,
so command line options are not necessary, but they are
available for those who prefer them. The built-in editor is
amply suited to design text maps. It is not a full featured
editor, but does include the ability to draw line graphics
characters using the cursor keys if desired. If the editor is
not adequate for some use, then any text editor may be used to
create an ASCII map file.
How to Install LANMAP
LANMAP can be installed on any hard disk, floppy disk, or
network drive by using the normal DOS COPY command, or the
Netware equivalent NCOPY command. The following set of
instructions will install LANMAP under the PUBLIC subdirectory.
Here we are assuming that SYS:PUBLIC is mapped to the Z: drive,
as this is the default mapping for Netware. If this is not the
case, or you do not wish to install LANMAP in the PUBLIC
directory, then simply substitute the appropriate drive letter
for your case. Each command is followed by pressing the <enter>
key.
1) Make SYS:PUBLIC the default drive. Type Z:
2) Copy the LANMAP files into PUBLIC. Type NCOPY A:*.* Z:*.*
3) Make LANMAP a read-only file. Type FLAG Z:LANMAP.COM SRO
4) Make NETLIST a read-only file. Type FLAG Z:NETLIST.COM SRO
The LANMAP files are now installed in the PUBLIC directory.
How to Run LANMAP
LANMAP is invoked by typing LANMAP at the DOS prompt and
pressing <enter>. From here on the program options are selected
via the main menu, which appears on the opening screen. Also
displayed on the opening screen is the name of the Active Map
File and the program credits, including the version number and
the copyright notice. (Command line options are discussed at
the end of this document.)
In the upper left corner of the opening screen will be a
message stating what the name of the Active Map file is. This
is the file that will be loaded for editing or displaying. If
there is no Active Map file, then this will be stated.
On the bottom line of the screen is the credit line. This
line states the version number and contains the copyright
notice.
In the center of the screen is the main menu. This is a list
of four options surrounded by a box. One of the choices will be
highlighted. To highlight a different option, press the up or
down arrow keys. To select the highlighted option, press the
<enter> key.
Choosing "EXIT" will terminate the LANMAP program.
Choosing "Display LAN Map" will cause LANMAP to load the
Active Map file from disk, display the file on the screen,
examine it for node information, begin polling the network for
active nodes, and display user information on the displayed map.
If no Active Map file is defined, then a message will be
displayed which states that "You must specify a Map to display
or edit." Pressing a key will return you to the opening screen
and the main menu.
Choosing "Edit a Map File" will cause LANMAP to load the
Active Map file from disk and display the first screen full. It
then accepts further user input as text which is added to the
map. The editor itself will be explained later. If no Active
Map file is defined, then a message will be displayed which
states that "You must specify a Map to display or edit."
Pressing a key will return you to the opening screen and the
main menu.
Choosing "Select a new Map" will cause LANMAP to ask two
questions. First, you are asked "Which drive letter contains
the MAP file?" The current default drive letter will be
displayed. If this drive designator is correct, then simply
press <enter>, otherwise type the drive letter which contains
the Map file you wish to access. You do not need to type the
colon, although you may if you wish. Note that only a drive
letter may be specified; no PATH is allowed. The subdirectory
that contains the Map files should be assigned to a drive letter
with the Netware MAP command. For instance, if the Map files
are contained in the PUBLIC subdirectory, then before starting
LANMAP you should have typed a command similar to the following:
MAP Z:=SYS:PUBLIC. Then, when asked to enter the drive letter
you need only type Z and press <enter>.
Second, you are asked "What is the name of the MAP file?"
Here you should type the name of the Map file which you wish to
use. Type the file name in the form FILENAME.EXT (any legal DOS
file name is allowed). If the named file does not exist, then
it will be created. If no file is specified, then a message to
that effect will be displayed, and pressing any key will return
you to the opening screen. If an existing file name is
specified, then you will return to the opening screen and the
new Active Map file will be indicated in the upper left corner
of the screen.
If you wish to set a default file name, LANMAP will read the
default Map file name from the DOS ENVIRONMENT area. For
instance, if your Map file is called LANMAP.MAP, then at the DOS
prompt type SET LANMAP=LANMAP.MAP to create the default. Then,
when prompted for the file name, LANMAP.MAP will appear in the
file name space and you can simply press the <enter> key to
select the default. This SET command can be placed in the
AUTOEXEC.BAT file if desired.
Using the Editor
The editor included with LANMAP is functional but not fancy.
It is used to edit plain ASCII text files which LANMAP will load
and process as Map files. If you have a favorite editor, or
require sophisticated editing features, then any text editor
which can produce ASCII files will be appropriate for making Map
files. Note that any line which is over 80 characters will be
truncated to 80 characters. Each Map file may be a maximum of
250 lines long. If you create a Map file longer than 250 lines,
the excess lines will be ignored when the Map is loaded.
The bottom line of the screen displays the status line. This
line shows the CsrGrph indicator, the cursor line, the cursor
column, the editor function, and the name of the Map file.
The CsrGrph indicator, if on, shows that pressing cursor
arrow keys will display graphics line characters in addition to
moving the cursor. To toggle CsrGrph on and off, press ^G (hold
down the <ctrl> key and press the G key at the same time). The
graphics line characters can be used to show walls, hallways, or
cubicle boundaries. Only vertical and horizontal line segments
are available, the corner segments cannot be produced.
The cursor line and cursor column indicate which line and
column of the Map file the cursor is located on. This is the
place that the next typed character will appear.
The editor function indicates what the editor is currently
doing. Normally this will read "Edit." During a file save it
will read "Save" and while quitting (abandoning a file) it will
read "Quit."
Saving an edited Map file
When done editing a Map file, press ^S three times in a row
(hold down the <ctrl> key while typing S three times). This
will cause the Map file to be saved on disk.
Abandoning an edited Map file
If you have made changes to a Map file, and decide that you
don't like them, you may exit the editor without saving your
work. This is done by pressing ^Q three times in a row (hold
down the <ctrl> key while typing Q three times).
Cursor movement
The cursor may be moved by using the Tab key, the cursor
(arrow) keys, the <enter> key, the Home, End, PgUp, and PgDn
keys. The only key that will move the cursor past the current
end of file (add lines to the file) is the <enter> key. Once
line 250 is reached, no more lines can be added and the cursor
will not move any further.
Adding text/characters
To add a character to the Map, simply type that character.
It will become part of the Map at the current cursor position.
There is no insert mode. To delete a character, you may either
backspace over it, or type a space over it. The Del key does
not delete characters. To add more lines to the bottom of a
Map, use the <enter> key.
Adding Workstation Nodes to the Map
Since this program is used to display the user name
associated with each active node on the network, the most
important information on every Map is the node information.
Each node is identified by typing its PHYSICAL address enclosed
in curly brackets "{}." When LANMAP first loads a Map file for
display, it searches for information enclosed in {} and assumes
that this information is a physical node address. A physical
node address is that hexadecimal address which is either
permanently burned into the network interface card, or set with
DIP switches at installation time. Either way, each card on the
network MUST have a unique physical address.
If you have multiple networks which are bridged either
internally or externally, it is possible to have two Physical
Addresses which appear to be the same. In fact, the Physical
Address consists of both the Network Interface Card's address,
and the Inter-network address. For instance, if you have two
separate Proteon ProNet networks joined by a Novell supported
X.25 external bridge (or internal bridging for that matter), it
is possible to have duplicate Physical addresses set on two of
the Proteon network interface cards. However, each network has
an Inter-network address, which was specified when the Netware
Operating System was Genned (When GENOS was run). In this case,
node addresses should be specified by both the physical address
and the inter-network address enclosed in curly brackets "{}"
and separated by a slash "/". (i.e. {10/F} for a physical
address of 10 and an inter-network address of F).
Other network topology/bridge combinations can also produce
situations where it is necessary to specify both the physical
address and the inter-network address of each workstation. The
above is just one example.
It should be noted that networks without bridges will not
require an inter-network address to be specified. Only in
instances where there are two or more network addresses present
will an inter-network address need to be specified.
If a node address is specified without an inter-network
address, the inter-network address of the network the
workstation running LanMap is on will be used.
With the Novell S/Net network, the physical address is
directly related to which port the network interface card is
attached to. Please note that a node's physical address has no
relation to its logical station address. The logical station is
the number that appears when you use the Netware USERLIST
command.
When alphanumeric characters appear in a hexadecimal address,
uppercase characters must be used. Following are some examples
of physical addresses as they should be specified in the Map
files.
IBM Token Ring: {10005A0069CF} where the
last six characters can change with each card.
These addresses are burned into each Token Ring
card by IBM at manufacturing time.
Novell S/Net: {1} ... {A} ... {18} are
valid values, where {1} corresponds to port 1,
{A} to port 10, and {18} to port 24. These ports
are located on the back of the 68B file servers.
Gateway G-net: {1} ... {FF} are valid
values. These values are set via DIP switches at
installation time.
Ethernet: These addresses are burned into each
card at manufacturing time.
Proteon ProNet: {1} ... {FF} are valid values.
These values are set via DIP switches at
installation time.
Novell S/Net (Multiple Servers): {1/1}, {A/FF},
and {14/8} are examples of valid values. In the
first case, 1 is the workstation physical ID, and
1 is the internetwork address. In the second
case, A is the workstation physical ID, and FF is
the internetwork address.
A list of active physical nodes can be obtained using the
NETLIST utility included on the original LANMAP diskette. At
the DOS prompt, type NETLIST and press <enter>. A listing of
each attached file server will appear, along with a listing of
each user logged in and that user's physical node address,
including the inter-network address. Enter these addresses in
the Map file.
You can redirect the NETLIST output to a DOS file by typing
NETLIST > FILENAME.EXT
You can redirect the NETLIST output to the printer by typing
NETLIST > LPT1:
A sample Map is contained in the file SAMPLE.MAP.
The DISPLAY Option
When you choose the Display LAN Map option from the main
menu, the Active Map file will be loaded from disk, the first
page will be displayed, and the entire map will be scanned for
nodes. Remember that a node is any text enclosed in "{}."
After the nodes are found, they will be highlighted on the
screen. On a color monitor, they will be displayed as brown
characters. On a monochrome monitor, they will be displayed as
normal intensity characters. The inter-network portion of a
node address will not be highlighted. On a color monitor they
will be displayed green, and on a monochrome monitor they will
be displayed at normal intensity.
From this point on, at regular intervals, LANMAP will poll
the network for active nodes. The login name of each user on
the LAN will be displayed in place of the physical node address.
Accompanying each login name will be the network station ID of
that node. Login names for users who are logged in to LANMAP's
default server will be displayed in yellow on a color monitor
(high intensity on a monochrome monitor) while users who are
logged in to other servers on the same network will be displayed
in brown (normal intensity on a monochrome monitor). The
station that is currently being used to run LANMAP will be
displayed in blinking characters. To exit the Display option,
simply press the <enter> key. If a password has been set, then
you must enter it to exit Display mode. You have one minute to
enter the correct password. If one minute passes, or the
incorrect password in entered, then Display will resume.
Both LANMAP and NETLIST will recognize multiple servers on a
single network, and all the users logged into those servers.
NETLIST will recognize eight (8) attached servers, which is the
maximum allowed by Novell. LANMAP will also recognize eight (8)
attached servers, and currently a maximum of 255 users.
However, for either program to see a file server, the work
station running the program must be previously attached to that
server either by the LOGIN or the ATTACH command. For example,
if there are three file servers on a network, called FS1, FS2,
and FS3, the user should type something similar to the following
before running LANMAP or NETLIST:
LOGIN FS1/username
ATTACH FS2/username
ATTACH FS3/username.
The "Logging" Suboption
LANMAP has the ability to keep a running record of how many
users are logged into the different file servers during the time
it is running in the Display mode. To activate Logging, press
the 'L' key (upper or lower case). You will be presented with a
screen telling you which logged drive the files will be kept on,
and what the file names will be. The drive will be the same one
on which the Map file is located (make sure you have
Write/Create access to that directory), and the file names will
be made out of the first eight characters of the File Server
names with an extension of .USE. You will then be asked if you
wish to start logging - Press the 'Y' or the 'N' key to answer
the question. There is no default answer, the 'Y' or 'N' that
appears after the question is there to tell you the current
state of the Logging operation.
If you press 'Y', you will be asked to enter a logging
interval. The value you enter specifies in how often in minutes
the logging statistics will be written. Only values between 1
and 30 minutes are legal. Each time the specified interval
expires, a record will be written to the appropriate file for
each file server. The record will consist of the date, time and
number of users logged in.
You have no control over which disk (directory) is used, or
what the file names are. You only have control over whether or
not logging is active, and the logging time interval.
The "Password" Suboption
The person running the LANMAP application can choose to set a
password which is required before LANMAP will terminate the
Display option. In this way, some unknown assailant will be
unable to deactivate LANMAP if it is left running unattended.
To invoke the Password option, Press the 'P' key (upper or lower
case). The screen will be cleared, and a series of passwords
will have to be entered. The password is only in effect until
LANMAP is EXITed. Each time the program is run, the password
suboption must be re-invoked.
If there is already a current password installed, then you
must first enter it in order to change the current one. You
will be prompted to do so. If you enter the incorrect password,
then you will be returned to the Display function. If you enter
the correct password, then you will be given the opportunity to
change current password.
If there is no current password, or you correctly enter the
current password, then you will be prompted to enter a new
password. After you either enter eight (8) characters, or press
<enter>, you will be prompted to re-type the same password. If
you re-type it successfully, then the password will be changed.
If not, then you must go back and start from the new password
again.
A password is any sequence of up to eight character-producing
keystrokes. If you wish a password shorter than eight
characters, then it should be terminated with the <enter> key.
Just realize that EVERY keystroke counts as part of the
password, even the <enter> key. Below are some examples of
different passwords possible:
duckling
DuCkLiNg
DUCKLING
<F2><esc><Home><enter>
mush<enter>
^Z^Z<PgDn><enter>
If you forget the password that you typed, you are out of
luck. There is no way to find out what it is, and you must re-
boot the PC in order to make LANMAP stop running.
The "Server" Suboption
As stated before, login names which are attached to LANMAP's
default server are displayed in yellow (or high intensity). To
cause a different set of names to be highlighted, you must
change LANMAP's default server. One way to do this is to exit
the LANMAP program and use Netware to change servers. The other
way is to press the 'S' key (upper or lower case) to bring up
the list of currently attached file servers. The current
default file server will be highlighted. By pressing the up and
down arrow keys to highlight another server, and pressing the
Enter key to select the desired server, you can select a new
current default file server. Note that when one workstation is
logged into multiple servers under more than one name, the name
which is being used on the current server will be displayed. If
a user is not attached to the current server, then one of the
other login names will be displayed. When you exit LANMAP, the
default server will be restored to the default server in effect
when LANMAP was started.
The "User search" Suboption
Suppose you want to know where a particular user is logged
on, but your Map is somewhat lengthy and you don't want to
scroll through it. To accomplish this you may invoke the User
search suboption. To do this, press the 'U' key (upper or lower
case). You will be presented with a screen which asks you to
enter the Login name of the user for whom you wish to search.
If that user can be located on any screen AFTER the one
currently being displayed, then two things will happen. First,
you will be told how many times that user occurs, second you
will be brought to that screen immediately. If possible, that
user's node will be displayed on the middle line of the screen.
Note that only screens AFTER the current one are searched, so it
might be a good idea to use this option from the top of the Map.
Command Line Options
If you desire, LanMap can be started with many options
specified by a combination of the DOS environment and the
command line. This is intended to help you run LanMap
unattended, for example, from an AUTOEXEC.BAT of during System
Login. For an explanation of how to set a default Map filename,
see "How to Run LanMap," under the "Select a New Map" section.
The form of the LanMap command follows:
LANMAP [/P=xxxxxxxx] [/L=nn] [/AUTO=YES]
Each of the items in square brackets is optional. The options
may be entered in lower or upper case.
/P=xxxxxxxx is used to specify the Password. Upper/Lower case
is respected. Up to 8 characters will be recognized.
/L=nn is used to specify a Logging interval, and at the same
time turn Logging on. Only values of 1 to 30 are allowed. If
values outside this range are entered, then 15 will be used. If
illegal characters (non-digits) are entered, then 15 will be
used.
/AUTO=YES is used to tell LanMap to autostart. This means that
it does not stop at the main menu, but rather assumes the
default disk drive, reads the default Map filename from the DOS
environment, and runs the "Display LAN Map" option. If
/P=xxxxxxxx was specified, then xxxxxxxx becomes the Exit
Password. If /L=nn was specified, then usage logging will take
place every nn minutes. The word "yes" may be upper or lower
case, but ALL letters must be upper or lower case, not mixed.